inspector: Cosmetic changes to the hierarchy tab
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Oct 2015 04:41:13 +0000 (00:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 28 Oct 2015 04:41:13 +0000 (00:41 -0400)
Put the interfaces below GInterface.

gtk/inspector/object-hierarchy.c
gtk/inspector/object-hierarchy.ui

index 9c91c8bb61c37eee4efb815c0d9fc2857613e36d..94e00638cdcd5028dd18c4e24800b064d49f6521 100644 (file)
@@ -99,10 +99,18 @@ gtk_inspector_object_hierarchy_set_object (GtkInspectorObjectHierarchy *oh,
     }
   while ((type = g_type_parent (type)));
 
+  if (g_hash_table_size (interfaces) > 0)
+    {
+      gtk_tree_store_append (oh->priv->model, &iter, NULL);
+      gtk_tree_store_set (oh->priv->model, &iter,
+                          COLUMN_OBJECT_NAME, "GInterface",
+                          -1);
+      parent = iter;
+    }
   g_hash_table_iter_init (&hit, interfaces);
   while (g_hash_table_iter_next (&hit, (gpointer *)&class_name, NULL))
     {
-      gtk_tree_store_append (oh->priv->model, &iter, NULL);
+      gtk_tree_store_append (oh->priv->model, &iter, &parent);
       gtk_tree_store_set (oh->priv->model, &iter,
                           COLUMN_OBJECT_NAME, class_name,
                           -1);
index d8a99ccce68d0ed3360e598fce2f9942dedf7637..5240d7b1e2e70b5e385e7941a26bf2aab11889ff 100644 (file)
@@ -29,7 +29,7 @@
             <property name="enable-search">False</property>
             <child>
               <object class="GtkTreeViewColumn">
-                <property name="title" translatable="yes">Object Hierarchy</property>
+                <property name="title" translatable="yes">Class Hierarchy</property>
                 <child>
                   <object class="GtkCellRendererText">
                     <property name="scale">0.8</property>